import Layout from '@/layout'

const cropRouter = {
  path: '/crop',
  component: Layout,
  redirect: '/crop/type',
  meta: {
    title: '作物',
    icon: 'crop'
  },
  children: [{
    path: 'type',
    component: () =>
                import ('@/views/crop/crop-type'),
    name: 'CropType',
    meta: { title: '品种', keepAlive: true }
  },
  {
    path: 'plant',
    component: () =>
                import ('@/views/crop/crop-plant'),
    name: 'CropPlant',
    meta: { title: '种植', keepAlive: true }
  },
  {
    path: 'fertilize',
    component: () =>
                import ('@/views/crop/crop-fertilize'),
    name: 'CropFertilize',
    meta: { title: '施肥', keepAlive: true }
  },
  {
    path: 'irrigate',
    component: () =>
                import ('@/views/crop/crop-irrigate'),
    name: 'CropIrriagte',
    meta: { title: '灌溉', keepAlive: true }
  },
  {
    path: 'handle',
    component: () =>
                import ('@/views/crop/crop-handle'),
    name: 'CropHandle',
    meta: { title: '病虫处理', keepAlive: true }
  },
  {
    path: 'harvest',
    component: () =>
                import ('@/views/crop/crop-harvest'),
    name: 'CropHarvest',
    meta: { title: '采收', keepAlive: true }
  },
  {
    path: 'produce',
    component: () =>
                import ('@/views/crop/crop-produce'),
    name: 'CropProduce',
    meta: { title: '加工', keepAlive: true }
  },
  {
    path: 'storage',
    component: () =>
                import ('@/views/crop/crop-storage'),
    name: 'CropStorage',
    meta: { title: '储存', keepAlive: true }
  }
  ]
}
export default cropRouter
